home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Tools & Apps / Testing & Debugging / TV-Man Package / With Source Version / TV-Man.make < prev    next >
Encoding:
Text File  |  1991-11-13  |  6.0 KB  |  272 lines  |  [TEXT/MPS ]

  1. #-------------------------------------------------------------------------------------
  2. #
  3. #    TV-Man.make    -    Make Source
  4. #
  5. #    Copyright © Apple Computer, Inc. 1989-1990
  6. #    All rights reserved.
  7. #
  8. #
  9. #
  10. #    Revision Log:
  11. #    
  12. #        4-26-91        RGK        Creation
  13. #
  14. #
  15. #---------------------------------------------------------------------------------------
  16.  
  17.  
  18.  
  19. #---------------------------------------------------------------------------------------
  20. #    Build Variables
  21.  
  22. OBJ                =    :Object:
  23. SRC                =    :Source:
  24. RES                =    :Resources:
  25. INC                =    :Includes:
  26. REZ                =    :RezMan:
  27.  
  28. SymOptions        =    -sym full 
  29.  
  30.  
  31.  
  32.  
  33.  
  34. #---------------------------------------------------------------------------------------
  35. #    this is a list of the options used in the various processes during the build
  36.  
  37. Rezopt            =    -append                            ∂
  38.                     -i "{INC}"                        ∂
  39.                     -i "{REZ}"                        ∂
  40.                     -rd    
  41.                 
  42. COpt             =     -r                                ∂
  43.                     -i "{INC}"                        ∂
  44.                     {SymOptions}
  45.                 
  46.                 
  47. LibOpt            =    {SymOptions}
  48.                 
  49.                 
  50. LinkOpt            =    {SymOptions}
  51.  
  52.  
  53. Setopt            =    -d .                             ∂
  54.                     -t "APPL"                        ∂
  55.                     -c "TVMN"                        ∂
  56.                     -a vB 
  57.  
  58.  
  59.  
  60.  
  61.  
  62. #---------------------------------------------------------------------------------------
  63. #    Now we will start the dependency rules for the program. The first will be the 
  64. #    rules for the resource.
  65.  
  66. "{PROJECT}"                        ƒƒ                    ∂
  67.                         "{PROJECT}.make"            ∂
  68.                         "{RES}{PROJECT}.r"            ∂
  69.                         "{INC}{PROJECT}.h"
  70.         Rez -o "{PROJECT}" "{RES}{PROJECT}.r" {RezOpt}
  71.  
  72.  
  73.  
  74.  
  75. "{PROJECT}"                        ƒƒ                    ∂
  76.                         "{PROJECT}.make"            ∂
  77.                         "{RES}{PROJECT}.Menus.r"    ∂
  78.                         "{INC}{PROJECT}.h"            ∂
  79.                         "{INC}{PROJECT}.Menus.h"
  80.         Rez -o "{PROJECT}" "{RES}{PROJECT}.Menus.r" {RezOpt}
  81.  
  82.  
  83.  
  84.  
  85.  
  86. "{PROJECT}"                        ƒƒ                    ∂
  87.                         "{PROJECT}.make"            ∂
  88.                         "{RES}{PROJECT}.Errors.r"    ∂
  89.                         "{INC}{PROJECT}.h"            ∂
  90.                         "{INC}{PROJECT}.Errors.h"
  91.         Rez -o "{PROJECT}" "{RES}{PROJECT}.Errors.r" {RezOpt}
  92.  
  93.  
  94.  
  95.  
  96. "{PROJECT}"                        ƒƒ                    ∂
  97.                         "{PROJECT}.make"            ∂
  98.                         "{RES}{PROJECT}.Video.r"    ∂
  99.                         "{INC}{PROJECT}.h"            ∂
  100.                         "{INC}{PROJECT}.Video.h"
  101.         Rez -o "{PROJECT}" "{RES}{PROJECT}.Video.r" {RezOpt}
  102.  
  103.  
  104.  
  105.  
  106. "{PROJECT}"                        ƒƒ                    ∂
  107.                         "{PROJECT}.make"            ∂
  108.                         "{RES}{PROJECT}.Sound.r"    ∂
  109.                         "{INC}{PROJECT}.h"            ∂
  110.                         "{INC}{PROJECT}.Sound.h"
  111.         Rez -o "{PROJECT}" "{RES}{PROJECT}.Sound.r" {RezOpt}
  112.  
  113.  
  114.  
  115.  
  116. #    As a seperate issue from TV-Man the following REZ will add to the library to
  117. #    be used by other programs.
  118.  
  119.  
  120. "{OBJ}BeepMgr.lib"                ƒƒ                    ∂
  121.                         "{PROJECT}.make"            ∂
  122.                         "{RES}{PROJECT}.Errors.r"    ∂
  123.                         "{INC}{PROJECT}.h"            ∂
  124.                         "{INC}{PROJECT}.Errors.h"
  125.         Rez -o "{OBJ}BeepMgr.lib" "{RES}{PROJECT}.Errors.r" {RezOpt}
  126.  
  127.  
  128. "{OBJ}BeepMgr.lib"                ƒƒ                    ∂
  129.                         "{PROJECT}.make"            ∂
  130.                         "{RES}{PROJECT}.Sound.r"    ∂
  131.                         "{INC}{PROJECT}.h"            ∂
  132.                         "{INC}{PROJECT}.Sound.h"
  133.         Rez -o "{OBJ}BeepMgr.lib" "{RES}{PROJECT}.Sound.r" {RezOpt}
  134.  
  135.  
  136.  
  137.  
  138.  
  139. #---------------------------------------------------------------------------------------
  140. #    Now comes the list of all the seperate C to object dependencies
  141.  
  142. "{OBJ}{PROJECT}.c.o"            ƒƒ                     ∂
  143.                         "{PROJECT}.make"            ∂
  144.                         "{INC}{PROJECT}.h"            ∂
  145.                         "{INC}{PROJECT}.Ext.h"        ∂
  146.                         "{INC}{PROJECT}.Menus.h"    ∂
  147.                         "{INC}{PROJECT}.Protos.h"    ∂
  148.                         "{INC}{PROJECT}.Errors.h"    ∂
  149.                         "{SRC}{PROJECT}.c"
  150.         C -o "{OBJ}{PROJECT}.c.o" "{SRC}{PROJECT}.c" {COpt}
  151.  
  152.  
  153.  
  154. "{OBJ}{PROJECT}.Init.c.o"        ƒƒ                    ∂
  155.                         "{PROJECT}.make"            ∂
  156.                         "{INC}{PROJECT}.h"            ∂
  157.                         "{INC}{PROJECT}.Ext.h"        ∂
  158.                         "{INC}{PROJECT}.Menus.h"    ∂
  159.                         "{INC}{PROJECT}.Protos.h"    ∂
  160.                         "{INC}{PROJECT}.Errors.h"    ∂
  161.                         "{SRC}{PROJECT}.Init.c"
  162.         C -o "{OBJ}{PROJECT}.Init.c.o" "{SRC}{PROJECT}.Init.c" {COpt}
  163.  
  164.  
  165.  
  166.  
  167. "{OBJ}{PROJECT}.Utility.c.o"        ƒƒ                ∂
  168.                         "{PROJECT}.make"            ∂
  169.                         "{INC}{PROJECT}.h"            ∂
  170.                         "{INC}{PROJECT}.Ext.h"        ∂
  171.                         "{INC}{PROJECT}.Menus.h"    ∂
  172.                         "{INC}{PROJECT}.Protos.h"    ∂
  173.                         "{INC}{PROJECT}.Errors.h"    ∂
  174.                         "{SRC}{PROJECT}.Utility.c"
  175.         C -o "{OBJ}{PROJECT}.Utility.c.o" "{SRC}{PROJECT}.Utility.c" {COpt}
  176.  
  177.  
  178.  
  179.  
  180. "{OBJ}{PROJECT}.Video.c.o"        ƒƒ                    ∂
  181.                         "{PROJECT}.make"            ∂
  182.                         "{INC}{PROJECT}.h"            ∂
  183.                         "{INC}{PROJECT}.Ext.h"        ∂
  184.                         "{INC}{PROJECT}.Menus.h"    ∂
  185.                         "{INC}{PROJECT}.Protos.h"    ∂
  186.                         "{INC}{PROJECT}.Errors.h"    ∂
  187.                         "{INC}{PROJECT}.Video.h"    ∂
  188.                         "{SRC}{PROJECT}.Video.c"
  189.         C -o "{OBJ}{PROJECT}.Video.c.o" "{SRC}{PROJECT}.Video.c" {COpt}
  190.  
  191.  
  192.  
  193.  
  194. "{OBJ}{PROJECT}.Sound.c.o"        ƒƒ                    ∂
  195.                         "{PROJECT}.make"            ∂
  196.                         "{INC}{PROJECT}.h"            ∂
  197.                         "{INC}{PROJECT}.Ext.h"        ∂
  198.                         "{INC}{PROJECT}.Menus.h"    ∂
  199.                         "{INC}{PROJECT}.Protos.h"    ∂
  200.                         "{INC}{PROJECT}.Errors.h"    ∂
  201.                         "{INC}{PROJECT}.Sound.h"    ∂
  202.                         "{SRC}{PROJECT}.Sound.c"
  203.         C -o "{OBJ}{PROJECT}.Sound.c.o" "{SRC}{PROJECT}.Sound.c" {COpt}
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210. #---------------------------------------------------------------------------------------
  211. #    This is a list of all the necessary Object files. This list also controls the order
  212. #    of the compile and link.
  213.  
  214. CLibObjs            =    "{Libraries}Runtime.o"        ∂
  215.                         "{Libraries}Interface.o"
  216.  
  217.             
  218. ProjectObjs            =    "{OBJ}{PROJECT}.c.o"        ∂
  219.                         "{OBJ}{PROJECT}.Init.c.o"    ∂
  220.                         "{OBJ}{PROJECT}.Utility.c.o"∂
  221.                         "{OBJ}{PROJECT}.Video.c.o"    ∂
  222.                         "{OBJ}{PROJECT}.Sound.c.o"
  223.  
  224.  
  225.  
  226. #    As a seperate issue from TV-Man the following groups will become libraries to
  227. #    be used by other programs.
  228.  
  229. BeepMgrObjs            =    "{OBJ}{PROJECT}.Utility.c.o"∂
  230.                         "{OBJ}{PROJECT}.Sound.c.o"
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238. #---------------------------------------------------------------------------------------
  239. #    Now for the library file dependencies.
  240.  
  241. "{OBJ}{PROJECT}.lib"                ƒƒ                 ∂
  242.                         "{PROJECT}.make"            ∂
  243.                         {ProjectObjs}
  244.         Lib -o "{OBJ}{PROJECT}.lib" {ProjectObjs} {CLibObjs} {LibOpt}
  245.  
  246.  
  247.  
  248.  
  249. #    this is a library generated for use else where.
  250.  
  251. "{OBJ}BeepMgr.lib"                    ƒƒ                 ∂
  252.                         "{PROJECT}.make"            ∂
  253.                         {BeepMgrObjs}
  254.         Lib -o "{OBJ}BeepMgr.lib" {BeepMgrObjs} {LibOpt}
  255.  
  256.  
  257.  
  258.  
  259.  
  260. #---------------------------------------------------------------------------------------
  261. #    Now for the Project dependencies. Relink if any of the objects have changed
  262.  
  263. "{PROJECT}"                            ƒƒ                 ∂
  264.                         {CLibObjs}                    ∂
  265.                         "{OBJ}{PROJECT}.lib"        ∂
  266.                         "{OBJ}BeepMgr.lib"            ∂
  267.                         "{PROJECT}.make"
  268.         Link -o "{PROJECT}" "{OBJ}{PROJECT}.lib" {LinkOpt}        
  269.         SetFile "{PROJECT}" {SetOpt}
  270.  
  271.  
  272.